package com.bjdd.jdy.ui.ready;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.entity.User;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import rx.Observable;

/**
 * Created by Administrator on 2017/4/14.
 */

public class ReadyModel implements ReadyContract.Model {
    @Override
    public Observable<BaseResult<User>> getUserInfo(String token, String userId) {
        return Api.getInstance().service
                .getUserInfo(token,userId)
                .compose(RxSchedulers.io_main());
    }
}
